class CreateTrialPeriods < ActiveRecord::Migration
  def self.up
    create_table :trial_periods do |t|
      t.integer :bundle_variation_id, :null => false
      t.integer :period
      t.string :frequency, :default => RefDate::DAY
      t.date :date_start
      t.date :date_end
      t.boolean :need_credit_card, :default => false
      t.string :status

      t.timestamps
    end
  end

  def self.down
    drop_table :trial_periods
  end
end
